// 导入封装好的网络请求类工具
import request from '../../../../utils/request';

//条件查询
export const FindWorkDescriptionByCondition = (searchModel) =>{
    return request ({
        url : '/workDescription/findWorkDescriptionByCondition',
        method :'post',
        data: searchModel
    })
}

//添加新增

export const AddWorkDescription = (form) =>{
    return request({
        url: '/workDescription/workDescriptionAdd',
        method:'post',
        data:form
    })
}

//保存编辑
export const EditOneWorkDescription = (form) => {
    return request({
        url: '/workDescription/workDescriptionUpdate',
        method: 'put',
        data: form
    })
}
//删除
export const DeleteOneWorkDescription = (id) => {
    return request({
         url: `/workDescription/workDescriptionDelete/${id}`,
        method: 'delete'
    })
}